import java.util.Scanner;

/**
   Reads a string, checks to see if it is a palindrome, and prints
      "Yes" or "No", accordingly. 
   Input: the value of s, a string
   Output: "Yes" or "No"
*/
public class PalFind
{
   public static void main(String[] args)
   {
      // Read string and convert to lowercase
      Scanner in = new Scanner(System.in);
      String ins = in.nextLine();

      // your work here
      int l = ins.length(),y=1;
      for(int i=0;i<l/2;i++){
         if(ins.charAt(i) != ins.charAt(l-1-i)){
            y=0;
            break;
         }
      }
      if(y==1)
      System.out.println("Yes");
      else
      System.out.println("No");



   }
}